package Gather.StreamExercise.StreamDome001;

import java.util.stream.Stream;

/**
 * ClassName:StreamDome006
 * Package:Gather.StreamExercise
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/2/23-22:23
 * @Version:v1.0
 */
public class StreamDome006 {
    /*一堆零散数据    public static<T>Stream<T>of(T...values) stream接口中的静态方法*/
    public static void main(String[] args) {
        Stream.of(1, 2, 3, 4, 5).forEach(s -> System.out.println(s));
        Stream.of("a", "b", "c").forEach(s -> System.out.println(s));
    }
}
